home *** CD-ROM | disk | FTP | other *** search
/ Aminet 22 / Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso / Aminet / docs / misc / ampd010.lha / ProPacker_V2.1.format < prev    next >
Encoding:
Text File  |  1995-06-24  |  3.0 KB  |  75 lines

  1. ProPacker v2.1
  2. Created by C Estrup / Static Bytes (1991)
  3. Analysed by Asle / ReDoX (asle@warka.com)
  4.  
  5. (All right, writing my name like that means that if there's)
  6. (something wrong in this file, it is MY fault ... that way,)
  7. (you know where to send flames if needed ... .)
  8.  
  9.  
  10. Offset    size (byte)    Comment
  11. ------    -----------    -------
  12.  
  13.       **************************************
  14.       * the following is repeated 31 times *
  15.       * with 8 bytes description for 1 smp *
  16. ******************************************************
  17.                                                      *
  18.   0 (00h)      2         Sample Size / 2             *
  19.   2 (02h)      1         Finetune (0 -> F)           *
  20.   3 (03h)      1         Volume (0 - 40h)            *
  21.   4 (04h)      2         Loop Start / 2              *
  22.   6 (06h)      2         Loop Size / 2               *
  23.                                                      *
  24. ******************************************************
  25.  
  26.  
  27. 248 (F8h)      1         (NOP) Number of pattern to play
  28. 249 (F9h)      1         "NoiseTracker" byte (set to 7Fh)
  29. 250 (FAh)   512 (200h)   Tracks table. In fact, it's four (4) tables of
  30.                          128 (80h) bytes each, where 128 is the number
  31.                          of pattern position. So, it's four tables for
  32.                          the four voices. These tables contain the numbers
  33.                          of tracks for each voice. (1st value is 0)
  34.  
  35. 762 (2FAh)  128*NOP      Tracks "data". It's 64 values (2 bytes each) which
  36.                          refer to the following table. (1st value is 0)
  37.  
  38. 762+
  39. (128*NOP)      4         (SIZ) Size of the "reference table".
  40.  
  41. 763+
  42. (128*NOP)
  43. +4            SIZ        "Reference table". Hard to find a name in fact :(.
  44.                          Well, this table contains the real tracks data. It's
  45.                          filled with the standard ptk four bytes description
  46.                          for one note. As an example, let's suppose the Track
  47.                          "data" value is 00-01, then, its real value will be
  48.                          the second block of four bytes in this table.
  49.                          A quick calculation shows that it can be very
  50.                          expensive because there's around 4,5 million
  51.                          possibilities ... (36*31*16*256).
  52.  
  53.       * Here's a quick description of these four bytes (like ptk ...)
  54.  
  55.          _____byte 1_____   byte2_    _____byte 3_____   byte4_
  56.         /                 /        /                 /      
  57.        0000          0000-00000000  0000          0000-00000000
  58.  
  59.        Upper four    12 bits for    Lower four    Effect command.
  60.        bits of sam-  note period.   bits of sam-
  61.        ple number.                  ple number.
  62.  
  63.       Note period table
  64.        C-1 to B-1 : 856,808,762,720,678,640,604,570,538,508,480,453
  65.        C-2 to B-2 : 428,404,381,360,339,320,302,285,269,254,240,226
  66.        C-3 to B-3 : 214,202,190,180,170,160,151,143,135,127,120,113
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  Follow Sample datas stored like ProTracker.
  73. Nothing is packed..
  74.  
  75.